<?php
require_once("../../../config.inc.php");
$isPopUp = true;
require_once("../../_inc/include.php");

//$objSDAO = new SDAO($aMetaConPar);
if(isset($_REQUEST["entity"])){
	$sSQL = "SELECT * FROM attribute WHERE entity='".$_REQUEST["entity"]."'";
	if($objSDAO->query($sSQL, "selAttrPar", array("contonErr"=>true))){
		while($row = $objSDAO->fetch("selAttrPar")){
			echo($row["attribute"]."|".$row["attribute"]."\n");	
		}
	}else{
		echo("Error:<br>".$objSDAO->error);
	}
}else{
	echo("Error:<br>Entity is required");
}
?>